<?php
use doumiaoduo\layer\LayerIframeWidget;
LayerIframeWidget::widget();
?>
<?php $form = \yii\widgets\ActiveForm::begin(['enableAjaxValidation' => true,'enableClientValidation' => true,'options'=>['class'=>'form-validate']]); ?>
<table width="100%" class="table-form">
    <tr>
        <th class="zx-goods-table"><?= $model->attributeLabels()['status']; ?></th>
        <td style="display: inline-block;width: 206px"><?= $form->field($model, 'status', ['template' => '{input}{error}{hint}'])->widget(\kartik\select2\Select2::className(),['data'=>['0' => '未付款', '1' => '已付款'],'options' => ['placeholder' => '请选择']]) ?></td>
    </tr>

    <tr>
        <th class="zx-goods-table"><?= $model->attributeLabels()['payment_id']; ?></th>
        <td style="display: inline-block;width: 206px"><?= $form->field($model, 'payment_id', ['template' => '{input}{error}{hint}'])->widget(\kartik\select2\Select2::className(),['data'=>$payment,'options' => ['placeholder' => '请选择']]) ?></td>
    </tr>

    <tr>
        <th class="zx-goods-table"><?= $model->attributeLabels()['paymant_operator_id']; ?></th>
        <td style="display: inline-block;width: 206px"><?= $form->field($model, 'paymant_operator_id', ['template' => '{input}{error}{hint}'])->widget(\kartik\select2\Select2::className(),['data'=>$finance,'options' => ['placeholder' => '请选择']]) ?></td>
    </tr>

    <tr>
        <th class="zx-goods-table"><?= $model->attributeLabels()['pic_url']; ?></th>
        <td><?= $form->field($model, 'imageList', ['template' => '{input}{error}{hint}'])->widget(\doumiaoduo\ueditor\ImageUploadMultiple::className(),['options'=>[
                'class'=>'input-text',
            ],
                'clientOptions'=>[
                    'serverUrl'=>\common\components\helpers\Fun::url(['/uploader/action'])
                ],
                'num'=>6]) ?>
        </td>
    </tr>

</table>
<div class="m_top_10 btn" style="display: none">
    <?= \yii\helpers\Html::submitButton('提交', ['class' => "button", 'id' => 'dosubmit']) ?>
</div>
<?php \yii\widgets\ActiveForm::end(); ?>
